# cp *.service to /etc/systemd/system/


# 启动
sudo systemctl daemon-reload
sudo systemctl enable server_socket output
sudo systemctl start server_socket output





# 管理指令
# 查看所有服务状态
# sudo systemctl status mediamtx lq-bridge qj-ptz

# 查看特定服务日志
# sudo journalctl -u mediamtx -f

# 重启服务
sudo systemctl restart mediamtx

# 停止服务
# sudo systemctl stop mediamtx

nohup /var/www/final.sh &